if(!!someValue)
let x = foo ?? bar(); // return foo if it's not null or undefined otherwise calculate bar
let x = foo?.bar.baz();